package GameModel;

import java.util.ArrayList;
import java.util.Stack;

public class Game {
	private int MaxPoints;
	private int PlayerNumber; //2er oder 3er?
	private GameState GameState;
	private ArrayList<PlayerInGame> PlayerInGameList;
	private ArrayList<session> SessionList;
	private Stack<GameRound> GameRoundList;
	// private int End;
	private deck Deck;
	private int SocketList;
	private chat Chat;
	
	
	public GameState getGameState() {
		return GameState;
	}

	public void setGameState(GameState gameState) {
		GameState = gameState;
	}
	
	public int getPlayerNumber() {
		return PlayerNumber;
	}

	public ArrayList<PlayerInGame> getPlayerInGameList() {
		return PlayerInGameList;
	}

	public void setPlayerInGameList(ArrayList<PlayerInGame> playerInGameList) {
		PlayerInGameList = playerInGameList;
	}

	public int getMaxPoints() {
		return MaxPoints;
	}

	public ArrayList<session> getSessionList() {
		return SessionList;
	}

	public Stack<GameRound> getGameRoundList() {
		return GameRoundList;
	}

	public int getDeck() {
		return Deck;
	}

	public int getSocketList() {
		return SocketList;
	}

	public chat getChat() {
		return Chat;
	}

	

	public Game(int maxPoints, session Session, int socketList) {
		MaxPoints = maxPoints;
		GameState = GameState.waitingForPlayers;
		SessionList.add(Session);
		PlayerInGameList.add((PlayerInGame) Session.getPlayer());
		Deck = new deck();
		SocketList = socketList;
		Chat = new chat(SessionList);
	}

}
